package com.usian.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.article.dtos.ArticleDto;
import com.usian.model.article.dtos.ArticleHomeDto;
import com.usian.model.article.dtos.ArticleInfoDto;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle> {
    ApArticle saveArticle(ApArticle apArticle);


    /**
     * 根据参数加载文章列表
     * @param type 1为加载更多  2为加载最新
     * @param dto
     * @return
     */
    ResponseResult load(Short type, ArticleHomeDto dto);

    ResponseResult loadArticleInfo(ArticleDto dto);

    ResponseResult loadArticleBehavior(ArticleInfoDto dto);
}
